package hd.day924;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class RepTest {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个字符串：");
        String input = scanner.nextLine();
        //>>>String pattern="[^a-zA-Z]";//^排除在外
        String pattern="[^\\u4e00-\\u9fa5]";//^排除在外
        String result =input.replaceAll(pattern,"");
        System.out.println(result);
    }
}
